package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class UserServlet{

    //作用：根据请求映射方法
    @RequestMapping("/DoLogin")
    public String Userlogin(HttpServletRequest request, HttpServletResponse response){
        String userName = request.getParameter("userName");
        String UserPassword = request.getParameter("UserPassword");
        return "index";
    }
}
